/*    */ package com.umeng.common.util;
/*    */ 
/*    */ import java.net.URLEncoder;
/*    */ import java.util.Map;
/*    */ import java.util.Set;
/*    */ 
/*    */ public class i
/*    */ {
/*    */   public static String a(Map<String, Object> paramMap, String paramString)
/*    */   {
/* 19 */     if ((paramMap == null) || (paramMap.isEmpty())) {
/* 20 */       return paramString;
/*    */     }
/* 22 */     StringBuilder localStringBuilder = new StringBuilder(paramString);
/* 23 */     Set localSet = paramMap.keySet();
/* 24 */     if (!paramString.endsWith("?"))
/* 25 */       localStringBuilder.append("?");
/* 26 */     for (String str : localSet) {
/* 27 */       localStringBuilder.append(URLEncoder.encode(str) + 
/* 28 */         "=" + 
/* 29 */         URLEncoder.encode(paramMap.get(str) == null ? "" : 
/* 30 */         paramMap.get(str).toString()) + "&");
/*    */     }
/* 32 */     localStringBuilder.deleteCharAt(localStringBuilder.length() - 1);
/* 33 */     return localStringBuilder.toString();
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.common.util.i
 * JD-Core Version:    0.6.2
 */